<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<{:url('seller/edit')}>">
            <input type="hidden" name="id" value="<{$info['id']}>" />
            <div class="layui-form-item">
              <label class="layui-form-label">姓名</label>
              <div class="layui-input-block">
                <input type="text" name="name" value="<{$info['name']}>" required lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">电话</label>
              <div class="layui-input-block">
                <input type="text" name="phone" value="<{$info['phone']}>" required lay-verify="required" placeholder="请输入电话" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">登录密码</label>
              <div class="layui-input-block">
                <input type="text" name="password" value="" placeholder="请输入登录密码" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">公司</label>
              <div class="layui-input-block">
                    <select name="company_id" required lay-verify="required" >
                      <option value="">请选择公司</option>
                      <{volist name='company' id='v'}>
                      <option value="<{$v['id']}>" <{if $info['company_id']==$v['id']}>selected<{/if}>><{$v['title']}></option>
                      <{/volist}>
                    </select>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">在职状态</label>
              <div class="layui-input-block">
                    <input type="radio" name="status" value="0" title="在职" <{if $info['status']==0}>checked<{/if}>>
                    <input type="radio" name="status" value="1" title="离职" <{if $info['status']==1}>checked<{/if}>>
                    <input type="radio" name="status" value="2" title="冻结" <{if $info['status']==2}>checked<{/if}>>
              </div>
            </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();
});
</script>
